package me.sauce.bitcoinwallet.key;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author sauce
 * @since 2018/4/3
 */

public class Data implements Parcelable {
    private String privateKey;
    private String key;

    public Data() {

    }

    protected Data(Parcel in) {
        privateKey = in.readString();
        key = in.readString();
    }

    public static final Creator<Data> CREATOR = new Creator<Data>() {
        @Override
        public Data createFromParcel(Parcel in) {
            return new Data(in);
        }

        @Override
        public Data[] newArray(int size) {
            return new Data[size];
        }
    };

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(privateKey);
        dest.writeString(key);
    }
}
